package com.logicalpractice.collections;

public class Person {

   private String firstName;
   private String lastName;

   private Address address = new Address();

   private int age;

   public Person() {
      //
   }

   public Person(String firstName, String lastName) {
      this(firstName, lastName, 0);
   }

   public Person(String firstName, String lastName, int age) {
      super();
      this.firstName = firstName;
      this.lastName = lastName;
      this.age = age ;
   }

   public String getFirstName() {
      return firstName;
   }

   public void setFirstName(String firstName) {
      this.firstName = firstName;
   }

   public String getLastName() {
      return lastName;
   }

   public void setLastName(String lastName) {
      this.lastName = lastName;
   }

   public Address getAddress() {
      return address;
   }

   public String getFullName() {
      return getFirstName() + " " + getLastName();
   }

   public int getAge() {
      return age;
   }

   public void setAge(int age) {
      this.age = age;
   }
}
